//
//  Common.swift
//  weibo
//
//  Created by 陈勇 on 16/2/25.
//  Copyright © 2016年 chenyong. All rights reserved.
//

import UIKit

//全局外部渲染颜色
let CZAppearanceTintColor = UIColor.orangeColor()

/// 登录成功通知
let CZWeiBoLoginSuccessedNotification = "CZWeiBoLoginSuccessedNotification"

/// 延迟 delta 执行 block
func delay(delta: NSTimeInterval = 1.0, block: ()->()){

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(Double(NSEC_PER_SEC) * delta)), dispatch_get_main_queue(), { () -> Void in
        
            //执行 block
            block()
    })
}
